package com.sharer.last.model.dto.friend;

import com.sharer.last.annotation.EnumValue;
import com.sharer.last.base.enums.BooleanEnum;
import com.sharer.last.base.model.BaseDTO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * 友链更新
 *
 * @ClassName FriendUpdateDTO
 * @Author wangjin
 * @Date 2023/07/10/13:49
 * @Description
 * @Version 1.0
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class FriendUpdateDTO extends BaseDTO {
    @NotNull(message = "id不能为空")
    private Long id;

    /**
     * 公开或隐藏
     */
    @EnumValue(value = BooleanEnum.class, message = "类型不存在")
    private Integer isPublished;
}
